<?php
require_once ("src/db/connectdatabase.php");

function getIntro($id) {
	$con = new ConnectDB();
	$tbl = " loan_intro_footer";
	$fn = array('header', 'footer');
	$condetion = array('id' => $id);
	return $con -> getvalue($tbl, $fn, $condetion);
}

if(isset($_GET['id'])) {
	$id = $_GET['id'];
	$intro = getIntro($id);
?>
<div class="text12" style="margin: auto; width: 970px; height: 11px; margin-top: 11px; color: #0a8bd9;">
<u><a href="<?php echo($host) ?>" class="text12" style="color: #0080d6;">Trang Chủ</a></u>&gt;Chương trình ưu đãi</div>
<div class="intrl_txt" style="margin: auto;">
    <div style="float: left; width: 675px; margin-top: 20px; clear: right;">
    	<div><?php if(count($intro) > 0) { echo($intro[0][0]); } ?></div>
        <div style="clear: both"></div>
        <div><?php if(count($intro) > 0) { echo($intro[0][1]); } ?></div>
    </div>
	
    <div style="float: right; clear: right; width: 275px; height: auto;background-image: url(<?php echo($host) ?>images/gray_bg.gif);  margin-top: 10px;">
        <?php include("formsendapplyloan.php"); ?>
    </div>
</div>
<?php 
}

?>